import requests

# 目标URL
url = 'http://localhost:8951/?action=talkapi&toUserCode=11162701&fromUserCode=11162701&t=hello HTTP/1.1'

# 要发送的数据，通常为字典格式
data_to_send = {
    'key1': 'value1',
    'key2': 'value2'
}

# 发送POST请求
response = requests.get(url, data=data_to_send)
if response.ok:
        print('GET request was successful.')
        print(response.text)
# 打印服务器的响应
print(response.text)